package com.yst.webplugin.additional.mask;

import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

/**
 * phone masker
 */
public class MaskPhone implements IStringMask {
    @Override
    public String make(String source) {
        if (Objects.isNull(source)) return null;
        if (source.length()>=11){
            return StringUtils.left(source,3)+"******"+StringUtils.right(source,2);
        }
        return source;
    }
}
